<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>数据字典管理</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp"%>

    <script type="text/javascript" src="/static/js/system/dataDictionary.js"></script>
</head>
<body>
<div>
<!--begin信息列表-->
    <table style="width:700px;height:250px">
        <tr>
            <td><table id="dataDictionary_datagrid"></table></td>
            <td><table id="dataDictionaryItem_datagrid"></table></td>
        </tr>
    </table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="dataDictionary_tb">
        <shiro:hasPermission name="dataDictionary1:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">增加</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="dataDictionary1:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="dataDictionary1:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
        </shiro:hasPermission>

        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<!--end左上角工具栏-->

<!--begin添加/编辑对话框-->
<div id="dataDictionary_dialog" align="center">
    <form id="dataDictionary_form" method="post">
        <table style="margin-top: 20px;">
            <input type="hidden" name="id" id="dataDictionaryId">
            <tr>
                <td>目录编码:</td>
                <td><input class="easyui-textbox" name="sn"></td>
            </tr>
            <tr>
                <td>目录名称:</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>目录简介:</td>
                <td><input name="intro" class="easyui-textbox" data-options="multiline:true" style="width:250px;height:100px"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="dataDictionary_bb">
    <shiro:hasPermission name="dataDictionary1:save">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    </shiro:hasPermission>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->
</div>

<!--字典明细-->
<div>
    <!--begin左上角工具栏-->
    <div id="dataDictionaryItem_tb">
        <shiro:hasPermission name="dataDictionaryItem:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="iadd">增加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="dataDictionaryItem:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="iedit">编辑</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="dataDictionaryItem:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="iremove">删除</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="ireload">刷新</a>
    </div>
    <!--end左上角工具栏-->

    <!--begin添加/编辑对话框-->
    <div id="dataDictionaryItem_dialog" align="center">
        <form id="dataDictionaryItem_form" method="post">
            <table style="margin-top: 20px;">
                <input type="hidden" name="id" id="dataDictionaryItemId">
                <tr>
                    <td>明细名称:</td>
                    <td><input class="easyui-textbox" name="name"></td>
                </tr>
                <tr>
                    <td>目录名称:</td>
                    <td><input class="easyui-combobox" name="parent.id" id="parentDictionary"
                               data-options="valueField:'id',textField:'name', panelHeight:'auto',url:'/dataDictionary1/listAll'"></td>
                </tr>
                <tr>
                    <td>目录简介:</td>
                    <td><input name="intro" class="easyui-textbox" data-options="multiline:true" style="width:250px;height:100px"></td>
                </tr>
            </table>
        </form>
    </div>
    <!--end添加/编辑对话框-->

    <!--begin添加/编辑对话框底部按钮-->
    <div id="dataDictionaryItem_bb">
        <shiro:hasPermission name="dataDictionaryItem:save">
        <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="isave">保存</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="icancel">取消</a>
    </div>
    <!--end添加/编辑对话框底部按钮-->
</div>
</body>
</html>
